import data.RobotData;


public class MovementData implements Comparable<MovementData>{
	
	public int Generation;
	public int RobotID;
	public int Fitness;
	
	
	public RobotData speedData;
	public RobotData turnData;
	
	public MovementData()
	{
		this.Generation = 0;
		this.RobotID = 0;
		this.Fitness = 0;
		
		this.speedData = new RobotData();
		this.turnData = new RobotData();
	}
	
	public MovementData(int fitness, int Generation, int RobotID, RobotData speedData, RobotData turnData)
	{
		this.Generation = Generation;
		this.RobotID = RobotID;
		this.Fitness = fitness;
		
		this.speedData = speedData;
		this.turnData = turnData;
	}
	
	public MovementData(MovementData other)
	{
		this.Fitness = other.Fitness;
		this.Generation = other.Generation;
		this.RobotID = other.RobotID;
		
		this.speedData = other.speedData;
		this.turnData = other.turnData;
	}
	
	public int compareTo(MovementData compareFitness) {		 
		int compareQuantity = ((MovementData) compareFitness).Fitness; 
 
		return compareQuantity - this.Fitness; 
	}	
}
